package com.youaishujuhui.devops.web.po;

import java.io.Serializable;
import java.util.Map;
import java.util.Set;

/**
 * 登录用户信息
 *
 * @author 陈沈钿
 * @create 2018-05-24 15:16
 **/
public class LoginUserPO implements Serializable {

    private static final long serialVersionUID = 1L;

    //用户ID
    private Integer id;
    //登录用户名
    private String userName;
    //用户姓名
    private String name;
    //允许访问的所有产品
    private Set<Integer> productIds;
    //允许访问的所有URI
    private Set<String> resourceUris;
    //允许访问的产品ID对应的URI <产品ID,URI集合>
    private Map<String, Set<String>> productIdUriMap;
    //允许访问的产品CODE对应的URI <产品CODE,URI集合>
    //private Map<String, Set<String>> productCodeUriMap;
    //允许访问的产品ID对应的渠道包ID
    private Map<Integer,Set<Integer>> productChannelMap;
    //允许访问的产品ID对应的大渠道
    private Map<Integer,Set<Integer>> productBigChannelMap;
    //允许访问的产品ID对应的小渠道
    private Map<Integer,Set<Integer>> productSmallChannelMap;
    //允许访问的产品ID对应的服务器
    private Map<Integer,Set<Integer>> productServerMap;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<Integer> getProductIds() {
        return productIds;
    }

    public void setProductIds(Set<Integer> productIds) {
        this.productIds = productIds;
    }

    public Set<String> getResourceUris() {
        return resourceUris;
    }

    public void setResourceUris(Set<String> resourceUris) {
        this.resourceUris = resourceUris;
    }

    public Map<String, Set<String>> getProductIdUriMap() {
        return productIdUriMap;
    }

    public void setProductIdUriMap(Map<String, Set<String>> productIdUriMap) {
        this.productIdUriMap = productIdUriMap;
    }

    /*public Map<String, Set<String>> getProductCodeUriMap() {
        return productCodeUriMap;
    }

    public void setProductCodeUriMap(Map<String, Set<String>> productCodeUriMap) {
        this.productCodeUriMap = productCodeUriMap;
    }*/

    public Map<Integer, Set<Integer>> getProductChannelMap() {
        return productChannelMap;
    }

    public void setProductChannelMap(Map<Integer, Set<Integer>> productChannelMap) {
        this.productChannelMap = productChannelMap;
    }

    public Map<Integer, Set<Integer>> getProductBigChannelMap() {
        return productBigChannelMap;
    }

    public void setProductBigChannelMap(Map<Integer, Set<Integer>> productBigChannelMap) {
        this.productBigChannelMap = productBigChannelMap;
    }

    public Map<Integer, Set<Integer>> getProductSmallChannelMap() {
        return productSmallChannelMap;
    }

    public void setProductSmallChannelMap(Map<Integer, Set<Integer>> productSmallChannelMap) {
        this.productSmallChannelMap = productSmallChannelMap;
    }

    public Map<Integer, Set<Integer>> getProductServerMap() {
        return productServerMap;
    }

    public void setProductServerMap(Map<Integer, Set<Integer>> productServerMap) {
        this.productServerMap = productServerMap;
    }
}
